package com.luozongyao.codeProductiver.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

/**
 * @program: guli_parent
 * @description:
 * @author: Zongyao Luo
 * @create: 2021-08-10 22:40
 **/
public class ExcelListener extends AnalysisEventListener<ExcelData> {
    //一行一行的读写excel的内容
    @Override
    public void invoke(ExcelData excelData, AnalysisContext analysisContext) {
        System.out.println("****"+excelData);
    }

    //读取excel表头信息
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("表头信息："+headMap);
    }

    //读取完成之后的
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
